package day11;

/**
 * @author oldliu
 * @since 1.0
 */
public  class Mouse implements Usb{
    private String brand;
    private int price;

    public Mouse(String brand, int price) {
        this.brand = brand;
        this.price = price;
    }

    public void drag(String filename){
        System.out.println(brand+"鼠标移动了文件"+filename);
    }
    public void move(){
        System.out.println(brand+"鼠标在桌面上移动");
    }
    @Override
    public void poweron() {
        System.out.println("鼠标接上了，指示灯开启，出现小手图标");
    }

    @Override
    public String toString() {
        return "鼠标{" +
                "brand='" + brand + '\'' +
                ", price=" + price +
                '}';
    }

    @Override
    public void poweroff() {
        System.out.println("鼠标被拔掉了，停止工作");
    }
}
